<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <table class="table table-striped">
        <thead>
          <tr>
            <th>字段</th>
            <th>值</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td>用户:</td>
            <td>(ID:{$row->user->id}) {$row->user->nickname} 手机号: {$row->user->mobile}</td>
          </tr>
          {foreach name="row.data" item="vo" key="in"}
            {if is_array($vo)}
              {if in_array($in, ['户口簿','遗嘱'])}
                <tr>
                  <td>{$in}:</td>
                  <td>
                    {foreach name="vo" item="v" key="i"}
                      <img src="{$v}" alt="">
                    {/foreach}
                  </td>
                </tr>
              {else/} 
                {foreach name="vo" item="v" key="i"}
                <tr>
                  <td>{$in}-{$i}:</td>
                  <td>{$v}</td>
                </tr>
                {/foreach}
              {/if}
            {else/}
            <tr>
              <td>{$in}:</td>
              <td>
              {if in_array($in, ['死亡证明','折现申请书'])}
                <img src="{$vo}" alt="">
              {else/}
                {if $in == '是否销户'}
                  {$vo?'是':'否'}
                {else/} 
                  {$vo}
                {/if}
              {/if}
              </td>
            </tr>
            {/if}
          {/foreach}
        </tbody>
      </table>
    
    </form>
    
    <style>
    
      form img {
        width:100px;
        height: 100px;
      }
    </style>
    